package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import pojo.Categories;
import service.CategoriesManager;
import dao.CategoriesDao;

@Service(value="categoriesManager")
public class CategoriesManagerImpl implements CategoriesManager {
	@Resource(name="categoriesDao")
	private CategoriesDao categoriesDao;
	
	@Override
	@Transactional
	public List<Categories> findAll() {
		return categoriesDao.findAll();
	}

	@Override
	@Transactional
	public Categories findById(String id) {
		return categoriesDao.findById(id);
	}
}
